//
//  MTClubConfigModel.swift
//  MT
//
//  Created by ooops on 2020/1/1.
//  Copyright © 2020 张强. All rights reserved.
//

import Foundation
import ObjectMapper
import MTCategory

class MTClubConfigModel: Mappable {
    
    /// 请求是否成功的code
    var code: Int?
    /// 请求返回的Message
    var message: String?
    /// 分页对象
    var page: PageModel?
    /// 时间戳
    var timestamp: TimeInterval?
    
    var result: MTClubConfigMoneyModel?
    
    required public init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code    <- map["code"]
        message <- map["message"]
        page <- map["page"]
        timestamp <- map["timestamp"]
        result  <- map["result"]
    }
}

class MTClubConfigMoneyModel: Mappable {
    
    /// 创建俱乐部活动所需钻石
    var activityMoney: Int?
    /// 创建俱乐部所需钻石
    var groupMoney: Int?
    /// 点券数量
    var moeny: Int?
    /// 微信账号
    var wechatOfficeAccount: String?
    /// 用户余额
    var ticketAmount: Int?
    /// 抽奖成本
    var cost: Int?
    required public init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        activityMoney    <- map["activityMoney"]
        groupMoney <- map["groupMoney"]
        moeny <- map["moeny"]
        wechatOfficeAccount <- map["wechatOfficeAccount"]
        ticketAmount <- map["ticketAmount"]
        cost  <- map["cost"]
    }
}

